﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebApplication3 
{
	public static class JsonHelper
	{ 
		public static string SerializeObject(this object obj){

			return Newtonsoft.Json.JsonConvert.SerializeObject(obj);
		}


		public static T DeserializeObject<T>(this string str)
		{ 
			return Newtonsoft.Json.JsonConvert.DeserializeObject<T>(str);
		}

	}
}
